<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page pageEncoding="UTF-8" %>
<%@ include file="../common/common.jsp"%>
<%@ page import="java.util.*,jp.co.technotree.common.util.*" %>
<%@ page import="jp.co.technotree.apl.api.common.Message" %>
<%@ page import="jp.co.technotree.apl.cmd.order.Odr4000Bean;" %>
<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.order.Odr4000Bean" scope="request" />
<%
	String userId = formBean.getUserId();
	String userNm = formBean.getUserNm();

    if(userNm == null) userNm="";
    
    Odr4000Bean.Record[] recordList = formBean.getRecordList();
    Odr4000Bean.UserRecord[] userRecordList = formBean.getUserRecordList();

	//--------------------------------------------ページングＳＴＡＲＴ------------------------------------------------------------------------
  	Odr4000Bean.PagerData[] pagerDataList = formBean.getPagerDataList();

  	int nowPageNo = formBean.getPageNo();


  	//初期ページが0になっていたら1にする
  	if(nowPageNo == 0){
  		nowPageNo = 1;
  	}

  	int prevPageNo = nowPageNo - 1;
  	int nextPageNo = nowPageNo + 1;

  	int stPage = 1;
  	int edPage = 0;


  	if(pagerDataList != null){
  		edPage = pagerDataList.length;
  	}

  	int startLoopNum = formBean.getStartLoopNum();
  	int endLoopNum = formBean.getEndLoopNum();
  	int sideNum = 5;

  	boolean isPrev = (nowPageNo != stPage);
  	boolean isNext = (nowPageNo != edPage);
  	boolean isMinPrev = (nowPageNo - sideNum > stPage);
  	boolean isMaxNext = (nowPageNo + sideNum < edPage);
  	//--------------------------------------------ページングＥＮＤ------------------------------------------------------------------------
%>
<html>
	<head>
		<title>予備品管理システム - 直結看板予備品情報変更履歴画面</title>
		<link rel="SHORTCUT ICON" href="../common/img/default/sys_icon.ico">

		<link rel='stylesheet' type='text/css' href='../../common/css/common/base.css' >
		<link rel='stylesheet' type='text/css' href='../../common/css/common/common.css'>
		<link rel='stylesheet' type='text/css' href='../../common/css/order/odr4000.css'>
		<link rel="stylesheet" href="../../common/js/calendar/css/cs_calendar.css" type="text/css">

		<script language="javascript" src="../../common/js/base.js"></script>
		<script language="javascript" src="../../common/js/menu/topmenu.js"></script>
		<script src="../../common/js/calendar/js/calendar.js" type="text/javascript"></script>

		<!-- ITEM-DROPDOWN START -->
		<link rel="stylesheet" href="../../common/js/dropdown/dropdown.css" type="text/css">
		<script src="../../common/js/dropdown/dropdown.js" type="text/javascript"></script>
		<!-- ITEM-DROPDOWN END -->
		
		<!--ポップアップ用-->
		<link rel='stylesheet' type='text/css' href='../../common/css/popUpPc.css' >
		<script type='text/javascript' src='../../common/js/popUpPc.js'></script>
<%
	ArrayList<String> jsCalendarIdArray = new ArrayList<String>();

%>

<style type='text/css'>
.LinkItem {
	cursor: pointer;
}

.div-wid {
	border-bottom:solid 1px #ccc;
	width:1320px; /* 横幅合計 + スクロールバー分 */
	height:450px;
	overflow:auto;
}

.ReadStyle{
	 background-color:#CCC;
}
.txtmode1 {
		 ime-mode: active;   /* 全角モード */
}
.txtmode2 {
		ime-mode: inactive; /* 半角モード */
}
.txtmode3 {
		ime-mode: disabled; /* 半角のみモード */
}
</style>

<script language="javascript">
	function onInit(){
		//topBackChange(0);
		//httpRequest();

		// カレンダー初期設定
		calendarInit();

		calendarInitBeffer();
		
		//-------------------------------------------------------------------------
		//<!-- ITEM-DROPDOWN START -->
		var panel = document.getElementById("dropdown-panel");
		var input = document.getElementById("addTable");
		var targetList = getElementsByClassName(input,"input","item",true);
		
		dropdown = new CItemDropDownList(targetList,panel,"drop-contents");
		dropdown.setKeyUpEvent(text_onKeyUp);
		dropdown.setSelectEvent(list_onSelect);
		
		//
		dropdown.serverURL="../itm1099/itm1099";
		//<!-- ITEM-DROPDOWN END -->
		//-------------------------------------------------------------------------
	}
	
	function nextPageJump(nextPage){
		mainForm = document.getElementById("F1");
		document.getElementById("nextPage").value = nextPage;
		mainForm.submit();
	}
/*************************************
	カレンダー初期設定
	calendarInit
*************************************/
function calendarInit(){
	var	option1={
			"text_flg":true,
			"default_view":false,
			"date_format":"%Y/%0M/%0D",
			"close_btn":true,
			"jamp_close_btn":true,
			"cal_pos":{
				"top":"25px",
				"left":"-65px",
				"z-index":99
			}
		};

	var ncal1 = new setCalendar("findRefixDtStart");
	ncal1.setOption(option1);
	ncal1.createCalendar();

	var ncal2 = new setCalendar("findRefixDtEnd");
	ncal2.setOption(option1);
	ncal2.createCalendar();

	//var ncal3 = new setCalendar("calendar3");
	//ncal3.setOption(option1);
	//ncal3.createCalendar();
	//var ncal4 = new setCalendar("calendar4");
	//ncal4.setOption(option1);
	//ncal4.createCalendar();

	if (document.main.deliveryShipmentDate) {
		var	optionDSD={
				"text_flg":true,
				"default_view":false,
				"date_format":"%Y/%0M/%0D",
				"close_btn":true,
				"jamp_close_btn":true,
				"text_flg":true,
				"cal_pos":{
					"top":"25px",
					"left":"-65px",
					"z-index":99
				}
			};
		var calHistoryDate = new setCalendar("historyDate");
		calHistoryDate.setOption(optionDSD);
		calHistoryDate.createCalendar();
	}

}

//通常検索
function formSubmit() {
	var frm = document.main;
	if(frm.findCreateUsr.value =="" && frm.findItemNo.value =="" && frm.findRefixDtStart.value =="" && frm.findRefixDtEnd.value ==""){
		alert_Custom("<%=Message.getMessage("WRN01520")%>");
		return;
	}else{
		if(frm.findRefixDtStart.value != ""){
			if(!ckDate(frm.findRefixDtStart.value)) {
				alert_Custom("<%=Message.getMessage("WRN00030").replace("$1","変更日")%>");
				return;
			}
		}
		if(frm.findRefixDtEnd.value != ""){
			if(!ckDate(frm.findRefixDtEnd.value)) {
				alert_Custom("<%=Message.getMessage("WRN00030").replace("$1","変更日")%>");
				return;
			}
		}
		if(frm.findRefixDtStart.value != "" && frm.findRefixDtEnd.value != ""){
			if(frm.findRefixDtStart.value>frm.findRefixDtEnd.value){
				alert_Custom("<%=Message.getMessage("WRN00160")%>");
				return;
			}
		}
		//ページ番号初期化
		frm.pageNo.value ="1";
		//ソートクリア-----------------------
		frm.columnSortText.value = "";
		frm.columnSortSelect.value = "";
		//-----------------------------------
		frm.cmd.value = "cmd01";
		frm.submitFlag.value = "1";
		frm.submit();
	}
}
//ソート
function changeColumnSort(key) {
	var formName = "main";
	var frm = document[formName];
	frm.columnSortSelect.value = key;
	frm.submitFlag.value = "1";
	
	if(frm.findCreateUsr.value =="" && frm.findItemNo.value =="" && frm.findRefixDtStart.value =="" && frm.findRefixDtEnd.value ==""){
		alert_Custom("<%=Message.getMessage("WRN01520")%>");
		return;
	}else{
		if(frm.findRefixDtStart.value != ""){
			if(!ckDate(frm.findRefixDtStart.value)) {
				alert_Custom("<%=Message.getMessage("WRN00030").replace("$1","変更日")%>");
				return;
			}
		}
		if(frm.findRefixDtEnd.value != ""){
			if(!ckDate(frm.findRefixDtEnd.value)) {
				alert_Custom("<%=Message.getMessage("WRN00030").replace("$1","変更日")%>");
				return;
			}
		}
		if(frm.findRefixDtStart.value != "" && frm.findRefixDtEnd.value != ""){
			if(frm.findRefixDtStart.value>frm.findRefixDtEnd.value){
				alert_Custom("<%=Message.getMessage("WRN00160")%>");
				return;
			}
		}
		//ページ番号初期化
		frm.pageNo.value ="1";
		frm.cmd.value = "cmd01";
		frm.submitFlag.value = "1";
		frm.submit();
		
	}
}

//**************************************************************
//* 機　能： 入力された値が日付でYYYY/MM/DD形式になっているか調べる
//* 引　数： datestr　入力された値
//* 戻り値： 正：true　不正：false
//****************************************************************/

function ckDate(datestr) {
	// 正規表現による書式チェック
	if(!datestr.match(/^\d{4}\/\d{2}\/\d{2}$/)){
		return false;
	}
	var vYear = datestr.substr(0, 4) - 0;
	var vMonth = datestr.substr(5, 2) - 1; // Javascriptは、0-11で表現
	var vDay = datestr.substr(8, 2) - 0;

	// 月,日の妥当性チェック  
	if(vMonth >= 0 && vMonth <= 11 && vDay >= 1 && vDay <= 31){
		var vDt = new Date(vYear, vMonth, vDay);
	
		if(isNaN(vDt)){
			return false;  
		}else if(vDt.getFullYear() == vYear && vDt.getMonth() == vMonth && vDt.getDate() == vDay){
			return true;
		}else{
			return false;
		}  
	}else{
		return false;
	}
}
//-------------------------------------------------------------------------
//<!-- ポップアップ START -->

//パップアップ解除
function back(){
	document.getElementById("opAlertBtn").style.display = "none";
	document.getElementById("opAlert").style.display = "none";
	document.getElementById("opAlertButton").style.display = "none";
	document.getElementById("opAlertTop").style.display = "none";
	document.getElementById("allbackgr").style.display = "none";
}

//<!-- ポップアップ END -->
//-------------------------------------------------------------------------

//-------------------------------------------------------------------------
//<!-- ITEM-DROPDOWN START -->
var dropdown = null;

var inputDateTime = null;
var timerId = null;
var eventSrc={};
function text_onKeyUp(object,sender,evt){
	var value = sender.value;
	eventSrc.object = object;
	eventSrc.sender = sender;
	eventSrc.evt = evt;
	inputDateTime = new Date();
	//-----------------------------------------------
	//品番自動ハイフン「-」を付ける
	var chkLen=5;
	if(event.keyCode != 0008){
		//指定の桁以上ならスタート
		if(value.length>=chkLen){
			var hikaku = value.substring(chkLen, chkLen+1);
			if(hikaku != "-"){
				var frontValue = value.substring(0, chkLen);
				var backValue  = value.substring(chkLen, value.length);
				sender.value=frontValue+"-"+backValue;
			}
		}
	}
	//小文字を大文字へ
	sender.value = sender.value.toUpperCase();
	value = sender.value;
	//-----------------------------------------------
	if ( value.length >= <%=formBean.getGohoKensu() %> ){
		if ( evt.keyCode == 37 || evt.keyCode == 39 ){
			
		}else{
			if ( timerId == null ){
				// 連続送信防止
				timerId = window.setTimeout(function(){text_onTimeOut(object,sender,evt);},500);
			}
		}
	}
}

/**
* 一定時間入力が止まった場合に動作
*/
function text_onTimeOut(object,sender,evt){
	var nowDateTime = new Date();
	var lngTime = (nowDateTime.getTime()-inputDateTime.getTime());
	if ( lngTime >= 1000 ){
		timerId = null;
		xmlRequest(object,sender,evt);
	}else{
		timerId = window.setTimeout(function(){text_onTimeOut(eventSrc.object,eventSrc.sender,eventSrc.evt);},500);
	}
}

/**
* XML要求処理
*/
function xmlRequest(object,sender,evt){
	//alert(evt.keyCode);
	var table = document.getElementById("drop-contents");
	table.innerHTML="";
	
	var top = calculateOffsetTop(sender);
	var left = calculateOffsetLeft(sender);
	var height = sender.offsetHeight;
	var panel = document.getElementById("dropdown-panel");
	panel.style.top=top+height+"px";
	panel.style.left=left+"px";
	panel.style.display="block";
	
	var param="cate=inv1000&itemCd="+sender.value;
	
	var formName = "main";
	var frm = document[formName];
	/* var findOdrDtYear=frm.findOdrDtYear.value;
	var findOdrDtMonth=frm.findOdrDtMonth.value;
	
	if(findOdrDtYear!=""){
		 param+="&findOdrDtYear="+findOdrDtYear;
	}
	if(findOdrDtMonth!=""){
		 param+="&findOdrDtMonth="+findOdrDtMonth;
	} */
	try {
		var frm = document.main;
		var objs = frm["invCate"];
		if (objs[1].checked == true){
			//仮入出庫
			param += "&afterProc=1";
		}
	} catch (e) {
		
	}

	object.doXmlRequest(object,sender,param);
}


/**
* リスト選択時コールバック処理
*/
function list_onSelect(object,sender,json){
	var panel = document.getElementById("dropdown-panel");
	panel.style.display="none";
	sender.focus();
	
	//----------
	var name=sender.name;
	var idx=name.substring(name.indexOf("[")+1,name.length-1);
	
	document.getElementById("findItemNo").value=json.itemcd;
	
}


function getElementsByClassName(parent,tagName,className,fullMatch){
	var i=0,j=0;
	var result = [], cnt = 0;
	var list = parent.getElementsByTagName(tagName);
	for ( i=0; i<list.length; i++ ){
		var name = list[i].className;
		if ( name ){
			var nameList = name.split(' ');
			for ( j=0; j<nameList.length; j++ ){
				if ( fullMatch ){
					if ( nameList[j] == className ){
						result[cnt++] = list[i];
					}
				}else{
					if ( nameList[j].indexOf(className) != -1 ){
						result[cnt++] = list[i];
					}
				}
			}
		}
	}
	return result;
}
function closeBtn(){
	var panel = document.getElementById("dropdown-panel");
	panel.style.display="none";
} 
//----------------------------------------------------------------------

//ページングリンクを押したときの処理
function wzdPager(pageNo) {
	var frm = document.forms["main"];

	frm.pageNo.value=pageNo;
	frm.submitFlag.value="1";
	frm.cmd.value='cmd01';
	frm.submit();

}

//クリアボタン
function findClearBtn(){
	location.href = "../odr4000/odr4000";
}
</script>

	</head>

	<body onLoad="onInit()" style="margin: 0px 4px 0px 0px;">
		<form class="frmMain" name="main" id="F1" action="./odr4000" method="post" enctype="multipart/form-data" onsubmit="return false;">
			<table class="tblMain" width="100%" cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td valign="top">
						<table class='main-width-tb'  cellspacing='0' cellpadding='0' border='0'><tr><td></td></tr></table>
						<table class='main-height-tb' cellspacing='0' cellpadding='0' border='0'><tr><td></td></tr></table>

						<!-- Header Menu START -->
						<div class="header-title">予備品管理システム(<%=formBean.kojou%>)</div>
						<!-- Header Menu END -->

						<!-- ***** [FORM] MAIN-FORM ***** -->
						<div id="lc-out" style="z-index: 0;">
							<div id="lc-in" style="z-index: 0">

								<div  style="margin: 10px ; width: 98%;">
									<div class="subtitle">直結看板予備品情報変更履歴画面</div>
									<!-- header menu -->
									<table  border="0" style="width: 98%;"id="addTable">
										<tr>
											<td>
												<div  style="margin: 10px 0px 10px 30px; width: 98%;">
												<table  border="0" width=98%>
													<tr>
														<td>
															担当：
														</td>
														<td>
															<select name="findCreateUsr" class="selectStyle" style="width:160px;">
															<option value=""></option>
															<%
																if ( userRecordList!=null) {
																	for (int i=0; i<userRecordList.length; i++) {
																		Odr4000Bean.UserRecord userRecord=userRecordList[i];
															%>
																<option value="<%=userRecord.userId%>" <%=userRecord.userId.equals((formBean.getFindCreateUsr())) ? " selected " : "" %>>
																	<%=userRecord.userNm%>
																</option>
															<%
																	}
																}
															%>
															</select>
														</td>
														<td >
															Y品番：
														</td>
														<td>
															<input id="findItemNo" type="text" class="item inputStyle txtmode3" style="width:120px;" name="findItemNo" value="<%=formBean.getFindItemNo()%>" maxlength="11">
														</td>
														<td>
															変更日 (年度)：
														</td>
														<td>
															<input type="text"  name="findRefixDtStart" id="findRefixDtStart" class="inputStyle txtmode3" style="width:90px;" value="<%=formBean.getFindRefixDtStart()%>" maxlength="10">
															～
															<input type="text"  name="findRefixDtEnd" id="findRefixDtEnd" class="inputStyle txtmode3" style="width:90px;" value="<%=formBean.getFindRefixDtEnd()%>" maxlength="10">
														</td>
														<td></td>
														<td>
															<input type="image" src="../../common/img/pc/btn_clear_off.png" onclick="findClearBtn();" alt="クリア">
														</td>
													</tr>
													<!-- スペース -->
													<tr style="height: 5px;"><td></td></tr>
													<tr>
														<td colspan="6"></td>
														<td style="width:120px;">
															<input type="image"  src="../../common/img/pc/btn_search_off.png" onclick="formSubmit();">
														</td>
														<td style="width:120px;">
															<input type="image"  src="../../common/img/pc/btn_back_off.png" onclick="nextPageJump('topmenu1000');">
														</td>
													</tr>
												</table>
												</div>
											</td>
										</tr>
									<!-- header menu -->
									</table>
								</div>
							</div><!-- lc-in End -->
							<div id="lc-in_under" style="z-index: 0">
								<div  style="margin: 10px ; width: 98%;">

									<!-- スペース -->
									<table style="height: 10px;"><tr><td></td></tr></table>
<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::ページング START:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->

<%
int recordCount = 0;
if (recordList != null) {
	recordCount = recordList.length;
}
if ("1".equals(formBean.getSubmitFlag())&& recordCount > 0) {
%>
				<table id="tblPager" width=""  align="center">
					<tr align="left">
						<td id="tblPager2" align="right" width="">
				<%
					if(isMinPrev){
				%>
							<a id="pagerBtnLinkNoBorder" href="javascript:wzdPager(<%= stPage %>);"><<<</a>&nbsp;&nbsp;&nbsp;&nbsp;
				<%
					}
				%>
						</td>
						<td id="tblPager2" align="right" width="">
				<%
					if(isPrev){
				%>
							<a id="pagerBtnLinkNoBorder" href="javascript:wzdPager(<%= prevPageNo %>);">前へ</a>&nbsp;&nbsp;&nbsp;&nbsp;
				<%
					}
				%>
						</td>
						<td id="tblPager2" align="center" width="">
				<%
					for(int i=startLoopNum;i<endLoopNum;i++){
						Odr4000Bean.PagerData pageData = pagerDataList[i];

						if(nowPageNo == pageData.Page){
				%>
							&nbsp;<span id="pagerLinkBorder"><a id="pagerLink" name="<%= pageData.Page %>" href="javascript:wzdPager(<%= pageData.Page %>);"><%= pageData.Page %></a></span>&nbsp;
				<%
						}else{
				%>
							&nbsp;<span id="pagerBtnLinkBorder"><a id="pagerBtnLink" href="javascript:wzdPager(<%= pageData.Page %>);"><%= pageData.Page %></a></span>&nbsp;
				<%
						}
					}
				%>
						</td>

						<td id="tblPager2" align="left" width="">
				<%
					if(isNext){
				%>
&nbsp;&nbsp;&nbsp;&nbsp;
							<a id="pagerBtnLinkNoBorder" href="javascript:wzdPager(<%= nextPageNo %>);">次へ</a>
				<%
					}
				%>
						</td>
						<td id="tblPager2" align="left" width="">
				<%
					if(isMaxNext){
				%>
&nbsp;&nbsp;&nbsp;&nbsp;
							<a id="pagerBtnLinkNoBorder" href="javascript:wzdPager(<%= edPage %>);">>>></a>
				<%
					}
				%>
						</td>
					</tr>
				</table><br>
	<%}
 %>

<!-- :::::::::::::::::::::::::::::::::::::::::::::::ページング END:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
									<!-- list  -->
									<table  border="0" style="width: 98%;">
										<tr>
											<td>
												<!-- header column  -->
												<table  border="1" width="1300px" height="30px" class="data-grid" height="300px">
													<thead>
														<tr>
															<th class="TblField1" style="background-color: #CAE1FF;">&nbsp;</th>
															<th class="TblField2" style="background-color: #CAE1FF;" onclick="changeColumnSort('trsh.refix_dt');">変更日	<%=formBean.getSort().getSortText("trsh.refix_dt")%></th>
															<th class="TblField3" style="background-color: #CAE1FF;" onclick="changeColumnSort('mu.usr_nm');">担当		<%=formBean.getSort().getSortText("mu.usr_nm")%></th>
															<th class="TblField4" style="background-color: #CAE1FF;" onclick="changeColumnSort('item_no');">Y品番	<%=formBean.getSort().getSortText("item_no")%></th>
															<th class="TblField5" style="background-color: #CAE1FF;" onclick="changeColumnSort('mrs.item_nm');">品名		<%=formBean.getSort().getSortText("mrs.item_nm")%></th>
															<th class="TblField6" style="background-color: #CAE1FF;" onclick="changeColumnSort('mrs.model');">型式		<%=formBean.getSort().getSortText("mrs.model")%></th>
															<th class="TblField7" style="background-color: #CAE1FF;" onclick="changeColumnSort('trsh.proc_div');">処理		<%=formBean.getSort().getSortText("trsh.proc_div")%></th>
															<th class="TblField8" style="background-color: #CAE1FF;" onclick="changeColumnSort('basic_stock');">基準<br>在庫		<%=formBean.getSort().getSortText("basic_stock")%></th>
															<th class="TblField9" style="background-color: #CAE1FF;" onclick="changeColumnSort('odr_point');">発注点	<%=formBean.getSort().getSortText("odr_point")%></th>
															<th class="TblField10" style="background-color: #CAE1FF;" onclick="changeColumnSort('new_stock');">新品<br>在庫	<%=formBean.getSort().getSortText("new_stock")%></th>
															<th class="TblField11" style="background-color: #CAE1FF;" onclick="changeColumnSort('used_stock');">中古<br>在庫	<%=formBean.getSort().getSortText("used_stock")%></th>
															<th class="TblField12" style="background-color: #CAE1FF;" onclick="changeColumnSort('sagaku');">差額	<%=formBean.getSort().getSortText("sagaku")%></th>
															<th class="TblField13" style="background-color: #CAE1FF;" onclick="changeColumnSort('up_reason');">変更理由	<%=formBean.getSort().getSortText("up_reason")%></th>
														</tr>
													</thead>
												<!-- header column  -->
												</table>
												<!-- data column -->
												<div class="div-wid" id="div-wid">
<%if("1".equals(formBean.getSubmitFlag())){
		if ( recordList!=null) {
			if ( recordList.length == 0 ){
%>
												<table border="1" class="data-grid"  style="width:1300px; height:120px;">
													<tr>
														<td colspan="13">データが存在しません。</td>
													</tr>
												</table>
<%
			}
%>
												<table  border="1" width="1300px" height="30px" class="data-grid" height="300px">
<%
			for (int i=0; i<recordList.length; i++) {
				Odr4000Bean.Record record=recordList[i];
%>
													<tr style="background-color: <%=("true".equals(record.colorFlg))?"#FFFFFF":"" %>">
														<td class="TblField1 TxtCenter" >
															<!-- ２ページ目以降も連番で表示されるように計算 -->
															<%=(i+1)+((nowPageNo-1)*formBean.getLimit())%>
														</td>
														<td class="TblField2" ><%=record.refixDt%></td>
														<td class="TblField3" ><%=record.usrNm%></td>
														<td class="TblField4" ><%=record.itemNo%></td>
														<td class="TblField5" ><%=record.itemNm%></td>
														<td class="TblField6" ><%=record.model%></td>
														<td class="TblField7" >
															<%
															String procNm="";
															if("0".equals(record.procDiv)){
																procNm = "新規";
															}else if("1".equals(record.procDiv)){
																procNm = "変更";
															}else if("2".equals(record.procDiv)){
																procNm = "取込";
															}else if("3".equals(record.procDiv)){
																procNm = "正式登録";
															}else if("4".equals(record.procDiv)){
																procNm = "直結変更";
															}else if("5".equals(record.procDiv)){
																procNm = "直結以外変更";
															}
															%>
															<%=procNm%>
														</td>
														<td class="TblField8 txtRight"><%=record.basicStock%></td>
														<td class="TblField9 txtRight"><%=record.odrPoint%></td>
														<td class="TblField10 txtRight"><%=record.newStock%></td>
														<td class="TblField11 txtRight"><%=record.usedStock%></td>
														<td class="TblField12 txtRight"><%=record.sagaku%></td>
														<td class="TblField13"><%=record.upReason%></td>
													</tr>
<%
			}
		}
%>
												</table><!-- data column -->
											</div>
										</td>
									</tr>
								</table><!-- list  -->
<%}%>
							</div>
						</div><!-- lc-in End -->

					</div><!-- lc-out  -->
					</td>
				</tr>
			</table>
	<input type="hidden" name="cmd" value="cmd01">
	<input type="hidden" name="submitFlag" value="0">
	<input type="hidden" id="nextPage" name="nextPage" value="">
	<input type="hidden" id="dataId" name="dataId" value="">
	<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::ページング START:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
	<input type="hidden" name="pageNo" value="<%= nowPageNo %>">
	<input type="hidden" name="selectPageNo" value="<%=formBean.getSelectPageNo()%>">
	<!-- :::::::::::::::::::::::::::::::::::::::::::::::ページング END:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
	<!-- カラムソート -->
	<input type="hidden" name="columnSortText" value="<%=formBean.getColumnSortText()%>">
	<input type="hidden" name="columnSortSelect" value="">
	
	<!--警告 ポップアップ---------------------------------------------------------------------------- -->
	<div id="allbackgr" class="allbackgr" style="display:none;"></div>
	<div class="opAlertBtn" id = "opAlertBtn" style="display:none;" ></div>
	<div class="opAlertButton" id = "opAlertButton" style="display:none;" ></div>
	<div class="opAlertTop" id = "opAlertTop" style="display:none; font-size:22px;">　予備品管理システム　</div>
	<div class="opAlert" id = "opAlert" style="display:none;"></div>
	<!-- -------------------------------------------------------------------------------------------- -->

<!-- ITEM-DROPDOWN START -->
<div class="dropdown-panel" id="dropdown-panel">
	<div class="dropdown-panel-in">
		<div class="header">
			<div style="float:left;width:100px;height:20px;">
				<table border=0>
					<tr>
						<td style="width:100px;height:20px;">品番</td>
					</tr>
				</table>
			</div>
			<div style="float:right;width:40px;text-align:right;">
				<button class="closebtn" type="button" onClick="closeBtn();" style="width:18px;height:17px; padding:0px;">
					<img src="../../common/js/dropdown/close.gif" alt="閉じる">
				</button>
			</div>
		</div>
		<div class="drop-contents" id="drop-contents">
		</div>
		<div class="footer"></div>
	</div>
</div>
<!-- ITEM-DROPDOWN END -->
		</form>

<script TYPE="text/javascript">
<!--
	/*************************************
	カレンダー初期設定
	calendarInit
	*************************************/
	function calendarInitBeffer(){
	var	option1={
			"text_flg":true,
			"default_view":false,
			"date_format":"%Y/%0M/%0D",
			"close_btn":true,
			"jamp_close_btn":true,
			"cal_pos":{
				"top":"25px",
				"left":"-65px",
				"z-index":99
			}
		};

	var jscal = null;

	<%
	String[] jsCalendarIdList = jsCalendarIdArray.toArray(new String[0]);
	for (int i=0; i<jsCalendarIdList.length; i++) {
	%>

	jscal = new setCalendar("<%=jsCalendarIdList[i]%>");
	jscal.setOption(option1);
	jscal.createCalendar();

	<%}%>


	}
-->
</script>
	</body>
</html>
